<template>
  <div class="wrapper">
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item in weekendList" :key="item.id">
        <div class="item-img-wrapper">
          <img class="item-img" :src="item.imgUrl" alt="">
        </div>
        <div class="item-info">
          <p class="item-title">{{ item.title }}</p>
          <p class="item-desc">{{ item.desc }}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: {
    weekendList: Array
  },
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scoped>
.wrapper
  background #ccc
  .title
    margin-top .6rem
    line-height .8rem
    font-size .3rem
    text-indent 1em
    background #ccc
  .item
    margin-bottom .08rem
    display flex
    flex-direction column
    overflow hidden
    background #fff
    .item-img-wrapper
      overflow hidden
      height 0
      padding-bottom 36.9%
      .item-img
        width 100%
    .item-info
      margin-left .2rem
      line-height .6rem
      .item-title
        font-size 0.3rem
        padding-right 2.4rem
        overflow hidden
        white-space nowrap
        text-overflow ellipsis
      .item-desc
        font-size 0.22rem
        padding-right 2.4rem
        overflow hidden
        white-space nowrap
        text-overflow ellipsis
</style>
